#include "stdafx.h"
#include "AlignByWord.h"

int AlignByWord::FindCuttingPoint(wstring& str, int formattingWidth)
{
	int cuttingPointCandidate;

	int i = AlignStrategy::FindCuttingPointSub(str, formattingWidth, &cuttingPointCandidate);

	return (cuttingPointCandidate == 0)? i : cuttingPointCandidate;
}

AlignByWord::AlignByWord(TextMetrics* tm)
:AlignStrategy(tm)
{
}